#include "place.h"

class Megapolis : public Place {
protected:
    int districtsCount;
public:
    Megapolis(const char* R_name, int pCount, int cCount) : Place(pCount, R_name) {
        districtsCount = cCount;
    }
    ~Megapolis() {
        std::cout << "free mega\n";
    }
    void out() override;
};

void Megapolis::out() {
    std::cout << "Name: " << this->name << std::endl;
    std::cout << "Districts count: " << this->districtsCount << std::endl;
    std::cout << "People amount: " << this->peopleCount << std::endl << std::endl;
}